package com.bullsora.kindlerss.model;

import com.google.appengine.api.datastore.Text;
import com.googlecode.objectify.annotation.Cached;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

/**
 * @author sorin.buliarca@iquesint.com
 */
@Entity
@Cached
public class FeedEntry {

  public static final String LINK = "link";
  public static final String FEED_URL = "feedUrl";
  @Id
  private Long id;

  private String feedUrl;

  private String link;

  private String title;

  private String author;

  private Text description;

  private Date publishedDate;

  private Date receiveDate;

  @Override
  public String toString() {
    return "FeedEntry{" +
        "feedUrl='" + feedUrl + '\'' +
        ", link='" + link + '\'' +
        ", title='" + title + '\'' +
        ", author='" + author + '\'' +
        ", description='" + description + '\'' +
        ", publishedDate=" + publishedDate +
        ", receiveDate=" + receiveDate +
        '}';
  }


  public Date getPublishedDate() {
    return publishedDate;
  }

  public void setPublishedDate(Date publishedDate) {
    this.publishedDate = publishedDate;
  }

  public Date getReceiveDate() {
    return receiveDate;
  }

  public void setReceiveDate(Date receiveDate) {
    this.receiveDate = receiveDate;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getAuthor() {
    return author;
  }

  public void setAuthor(String author) {
    this.author = author;
  }

  public Text getDescription() {
    return description;
  }

  public void setDescription(Text description) {
    this.description = description;
  }

  public String getLink() {
    return link;
  }

  public void setLink(String link) {
    this.link = link;
  }

  public String getFeedUrl() {
    return feedUrl;
  }

  public void setFeedUrl(String feedUrl) {
    this.feedUrl = feedUrl;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }
}
